#ifndef _CLOCK_H_
#define _CLOCK_H_

typedef struct
{
uint8_t year;
uint8_t month;
uint8_t week;
uint8_t weekday;
uint8_t day;
uint8_t hour;
uint8_t min;
uint8_t sec;
}struct_time;

void set_clock(struct_time * time);
struct_time* get_clock(void);
void init_clock (void);


/* internal functions begin */

uint8_t calc_weekday(struct_time * time);
uint8_t calc_week(struct_time * time);

/* internal functions end */


#endif /* _CLOCK_H_ */
